package com.uzai.common.vo;

import com.uzai.common.enums.MerEsDataIndexName;

import java.util.Objects;

public class MerEsOtherDataIndexVo {
    /**
     * 数据key
     * @see MerEsDataIndexName
     */
    private String key;
    /**
     * 对应索引存储的分片ID
     */
    private Integer id;
    /**
     * 是否启用 0否 1是
     */
    private Integer enable;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }
    public MerEsOtherDataIndexVo(){}
    public MerEsOtherDataIndexVo(String key) {
        this.key = key;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        MerEsOtherDataIndexVo that = (MerEsOtherDataIndexVo) o;
        return Objects.equals(key, that.key);
    }

    @Override
    public int hashCode() {
        return Objects.hash(key);
    }
}
